<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="就诊列表" name="first" style="padding-bottom: 5px;height: 100%;">
        <visitList ref="visitListRef"/>
      </el-tab-pane>
      <el-tab-pane label="回访列表" name="second" style="padding-bottom: 5px;">
        <followUp ref="followUpRef"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import visitList from './visitList.vue'
import followUp from './followUp.vue'
export default {
  name: 'EitcErmPcIndex',
  components: {
    visitList,
    followUp
  },
  data() {
    return {
      activeName: 'first'
    }
  },

  mounted() {},

  methods: {
    handleClick() {
      if(this.activeName === 'first') {
        this.$refs.visitListRef.initList()
      }else {
        this.$refs.followUpRef.initList()
      }
    }
  }
}
</script>

<style lang="scss" scoped>
::v-deep .el-tabs__nav-wrap::after {
  display: none;
}
</style>